package com.diaohw.module.system.obj.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户登录日志
 * </p>
 *
 * @author D-Hw
 * @since 2024-07-08
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "AccountLoginLog", description = "用户登录日志")
public class LoginLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private String id;
    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private String accountId;

    /**
     * 用户登录账号
     */
    @Schema(description = "用户登录账号")
    private String username;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称")
    private String nickname;

    /**
     * 登录IP
     */
    @Schema(description = "登录IP")
    private String loginIp;

    /**
     * 浏览器
     */
    @Schema(description = "浏览器")
    private String loginBrowser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createdTime;
}
